#include "../include/BTree.h"



struct BTreeNode *createNode(ElementType n){
	BTreeNode *cur = (struct BTreeNode *)malloc(sizeof(struct BTreeNode));
	cur->leftNode = cur->rightNode = NULL;
	cur->value = n;
	return cur;
}


int printByDFS(BTreeNode *root){
	if(root == NULL)
		return 0;
	printByDFS(root->leftNode);
	printf("%d ",root->value);
	printByDFS(root->rightNode);
	return 0;
}
